598b45fe5708a7e9b2f216f6146d46b856359d3c,src/main/java/org/eclipse/golo/runtime/FunctionCallSupport.java,FunctionCallSupport,findStaticMethodOrField,#Class#String#Object[]#,341
Before Change
}
}
for (Method method : klass.getMethods()) {
if (methodMatches(name, arguments, method)) {
return method;
}
}
After Change
private static Object findStaticMethodOrField(Class<?> klass, String name, Object[] arguments) {
for (Method method : klass.getDeclaredMethods()) {
if (methodMatches(name, arguments, method, false)) {
return method;
}
}
for (Method method : klass.getMethods()) {
if (methodMatches(name, arguments, method, false)) {
return method;
}
}
for (Method method : klass.getDeclaredMethods()) {
if (methodMatches(name, arguments, method, true)) {
return method;
}
}
for (Method method : klass.getMethods()) {